function search() {
	window.location.href = "${pageContext.request.contextPath}/case?executionStatus="
			+ $("#executionStatus").val() + "&assignmentState=" + $("#assignmentState").val()
			+ "&debtorName=" + $("#debtorName").val();
}

function getQueryString(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
	var r = window.location.search.substr(1).match(reg);
	if (r != null) {
		return decodeURI(r[2]);
	} else {
		return null;
	}
}

$(function() {
	/*alert(getQueryString("executionStatus"));
	alert(getQueryString("assignmentState"));*/
	if (getQueryString("executionStatus") != null
			&& getQueryString("assignmentState") != null) {
		$("#executionStatus").val(getQueryString("executionStatus"));
		$("#assignmentState").val(getQueryString("assignmentState"));
		$("#debtorName").val(getQueryString("debtorName"));
	}
})
